package com.peixian.enums;

public enum UserResultEnums {


    USER_ACCOUNT_OR_PASSWORD__ERROR(1001, "账户或密码错误"),
    USER_MOBILE_PHONE_OR_CAPTCHA__ERROR(1002, "手机或验证码错误"),

    SMS_VERIFY_FAIL(1013, "手机号验证码错误"),
    SMS_CODE_NOT_EXIST(1014, "请先获取验证码信息"),
    BALANCE_ERROR(1015, "用户余额不足"),
    PHONE_FORMAT_ERROR(1106, "手机号格式不正确"),
    VERIFY_CODE_TYPE_ERROR(1107, "没有此类型短信"),
    TRANSFER_ERROR(1018, "交易记录插入错误"),
    HAS_BEEN_SENT(1109,"短信已发送，请注意查收"),
    SMS_SEND_ERROR(1110,"短信发送失败"),
    SMS_SEND_ABNORMAL(1110, "短信发送异常"),
    NO_ACCOUNT(1112, "该账户已被封禁"),
    TYPE_ADMIN(1111, "账号类型不对，请联系管理员"),
    PARAMETER_NOT_NULL(1113, "核心参数不可为空"),
    PHONE_EXISTED(1114, "手机号已存在"),
    INVITATION_CODE_NOT_EXISTED(1115, "邀请码不存在"),
    REGISTERED_FAIL(1116, "注册失败"),
    USER_UPDATE_FAIL(1117, "更新失败"),
    USERNAME_EXISTED(1118, "该用户名已存在"),
    PASSWORD_NOT_SIX_LENGTH(1120, "交易密码仅限六位数"),
    AUTHENTICATION_NICKNAME_EXISTED(1119, "该用户已进行过实名审核"),
    ACCOUNT_DISABLE(1121, "该账号已被封禁！请联系管理员"),
    VERIFY_CODE_EXPIRED(1117, "图形验证码过期"),
    VERIFY_CODE_ERROR(1118, "图形验证码输入错误"),
    USER_INSERTION_FAIL(1119, "新增api失败"),
    USER_DEL_FAIL(1122, "新增api失败"),
    FAILED (1123,"失败!"),
    TRADE_PASSWORD_FAIL(1124,"交易密码不正确"),
    SAVE_FAIL(1125, "新增失败"),
    UPDATE_FAIL(1126, "更新失败"),
    GET_FAIL(1127, "查找失败"),
    DEL_FAIL(1128, "删除失败"),
    ACTIVE_CODE_ERROR(1029, "已有激活码"),
    ACTIVE_NULL_ERROR(1030, "用户无激活码"),
    PHONE_NOT_BIND(1162,"尚未绑定手机号"),
    USER_ACTIVE_NULL_ERROR(1030, "该邀请人无激活码"),
    ;


    private int code;
    private String msg;

    UserResultEnums(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}